<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table width="100%" cellpadding="1" cellspacing="1">
    <tr class="netral2">
        <td width="100%" colspan="2"><bean:message key="account.kartu"/></td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <table cellpadding="1" cellspacing="1" width="100%">
                <tr class="header">
                    <td><bean:message key="label.no"/></td>
                    <td><bean:message key="account.kartu"/></td>
                    <td><bean:message key="account.nama"/></td>
                </tr>
                <logic:empty name="listAccountCard">
                    <tr class="form">
                        <td colspan="3" align="center"><bean:message key="account.kartu"/> <bean:message key="label.isEmpty"/></td>
                    </tr>
                </logic:empty>
                <logic:notEmpty name="listAccountCard">
                    <c:forEach var="listAccountCard" items="${listAccountCard}" varStatus="row">
                        <c:if test="${(row.count) % 2 == 0}"><tr class="over"></c:if>
                        <c:if test="${(row.count) % 2 != 0}"><tr class="down"></c:if>
                            <td width="5%"><c:out value="${row.count}"/></td>
                            <td width="10%" align="left"><c:out value="${listAccountCard.noCard}"/></td>
                            <td align="left"><c:out value="${listAccountCard.nama}"/></td>
                        </tr>
                    </c:forEach>
                </logic:notEmpty>
                <tr class="form">
                    <td colspan="3">&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr class="netral2">
        <td width="100%" colspan="2"><bean:message key="account.relasi"/></td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <table cellpadding="1" cellspacing="1" width="100%">
                <tr class="header">
                    <td><bean:message key="label.no"/></td>
                    <td><bean:message key="account.nama"/></td>
                    <td><bean:message key="account.umur"/></td>
                    <td><bean:message key="account.relasiship"/></td>
                </tr>
                <logic:empty name="listAccountRelation">
                    <tr class="form">
                        <td colspan="4" align="center"><bean:message key="account.relasi"/> <bean:message key="label.isEmpty"/></td>
                    </tr>
                </logic:empty>
                <logic:notEmpty name="listAccountRelation">
                    <c:forEach var="listAccountRelation" items="${listAccountRelation}" varStatus="row">
                        <c:if test="${(row.count) % 2 == 0}"><tr class="over"></c:if>
                        <c:if test="${(row.count) % 2 != 0}"><tr class="down"></c:if>
                            <td width="5%"><c:out value="${row.count}"/></td>
                            <td width="65%"><c:out value="${listAccountRelation.nama}"/></td>
                            <td width="5%"><c:out value="${listAccountRelation.umur}"/></td>
                            <td width="35"><c:out value="${listAccountRelation.relasi}"/></td>
                        </tr>
                    </c:forEach>
                </logic:notEmpty>
                <tr class="form">
                    <td colspan="4">&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr class="netral">
        <td colspan="2"><bean:message key="account.account"/></td>
    </tr>
    <tr class="form">
        <td width="10%"><bean:message key="account.kode"/></td>
        <td>: <c:out value="${detailAccount.kode}"/></td>
    </tr>
    <tr class="form">
        <td><bean:message key="account.nama"/></td>
        <td>: <c:out value="${detailAccount.nama}"/></td>
    </tr>
    <tr class="form">
        <td><bean:message key="account.alamat"/></td>
        <td>: <c:out value="${detailAccount.alamat}"/></td>
    </tr>
    <tr class="form">
        <td><bean:message key="account.telp"/></td>
        <td>: <c:out value="${detailAccount.telp}"/></td>
    </tr>
    <tr class="form">
        <td><bean:message key="account.jabatan"/></td>
        <td>: <c:out value="${detailAccount.statusJabatan}"/></td>
    </tr>
    <!--tr class="form">
        <td><bean:message key="account.user"/></td>
        <td>: <c:out value="${detailAccount.user.nama}"/></td>
    </tr-->
     <tr class="form">
        <td colspan="2" align="right"><html:submit onclick="history.back()"><bean:message key="label.back"/></html:submit></td>
    </tr>
</table>